package com.riguz.forks.framework.ioc.test;

import com.riguz.forks.framework.ioc.IocContainer;

public class E {
    public static void main(String[] args){
        System.out.println("Ioc....");
        IocContainer container = new IocContainer(); 
        A a = container.getInstance(A.class);
        a = container.getInstance(A.class);
        a = container.getInstance(A.class);
        B b = container.getInstance(B.class);
        b = container.getInstance(B.class);
        b = container.getInstance(B.class);
        C c = container.getInstance(C.class);
        c = container.getInstance(C.class);
        
        D d = container.getInstance(D.class);
        container.injectFields(d);
        d.sayHello();
        System.out.println("Done");
    }
}
